﻿SiteView = Backbone.View.extend
({
    initialize: function ()
    {
        $("#divCloseSession").click(jQuery.proxy(this.OnCloseSession, this));
    },
    OnCloseSession: function (e)
    {
        try
        {
            FB.logout(function (response)
            {
                window.location = "default.aspx";
            });
        }
        catch(e)
        {
            window.location = "default.aspx";
        }
    },
    LoginFacebook: function ()
    {
        /*
        FB.getLoginStatus(function (response)
        {
            statusChangeCallback(response);
        });
        */
    }
});